package com.cqjtu.store.address.service;

import com.cqjtu.store.address.pojo.dto.AddressDTO;
import com.cqjtu.store.address.pojo.vo.AddressUpdateVO;
import com.cqjtu.store.address.pojo.vo.AddressVO;
import com.cqjtu.store.address.pojo.vo.DistrictVO;
import com.cqjtu.store.address.pojo.vo.OrderAddressVO;
import com.cqjtu.store.user.pojo.vo.UserLoginVO;

import java.util.List;

public interface AddressService {

    List<AddressVO> getAddressList(UserLoginVO userLoginVO);

    void delete(Integer id, UserLoginVO userLoginVO);

    void setDefault(Integer id, UserLoginVO userLoginVO);

    List<DistrictVO> getDistrictList(Integer parent);

    void saveAddress(AddressDTO addressDTO, UserLoginVO userLoginVO);

    AddressUpdateVO getAddressById(Integer id, UserLoginVO userLoginVO);

    void update(AddressDTO addressDTO, UserLoginVO userLoginVO);

    List<OrderAddressVO> getOrderAddressList(UserLoginVO userLoginVO);
}
